package com.proxy.dynamicProxy;

/**
 * 目标对象  被代理对象
 */
public class TeacherDao implements ITeacherDao {
    @Override
    public void teach() {
        System.out.println("老师授课中 ... ");
    }

    @Override
    public String checkName(String name) {
        System.out.println("老师开始点名了 ... 同学：【"+name+"】");
        return name;
    }
}
